/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Grafik;

import java.awt.Color;
import java.awt.Graphics2D;

/**
 *
 * @author Bernhard
 */
public abstract class GrafikObject {
    
    protected int scaleX;
    protected int scaleY;
    
    public abstract void draw(Graphics2D g, Color color);
    public abstract GrafikPoint getCenter();
    
    protected void drawPixel(Graphics2D g2d, int x, int y, Color color){
        int dGrid = 3; //in order to see the pixels
        int x1 = x, y1 = y;
        Color ac = g2d.getColor();
        g2d.setColor(color);
        g2d.fillRect(x1 - 1, y1 - 1, dGrid, dGrid);
        g2d.setColor(ac);
    }

}
